//
//  AppDelegate.m
//  18-HomeWork-添加联系人
//
//  Created by dllo on 16/8/8.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate
//通过数据库实现通讯录添加联系人功能。
//需求:
//1、通讯录展示页面导航栏右侧,设置“添加”按钮。
//2、点击“添加”按钮能弹出联系人详细信息页面，要求输入信息UITextField 。
//3、联系人图片可以从相册选取。
//4、所有的信息一旦添加，则永久保存在数据库中，下次打开依然显示。
//5、联系人界面使用tableView展示。
//保存图片, 思路提供: 图片取出, 转成Data, 写入本地沙盒, 数据库中存Data对应的路径
//注意: 保证沙盒的干净整洁(Data存入文件夹)

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    return YES;
}


- (void)applicationWillResignActive:(UIApplication *)application {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}


- (void)applicationDidEnterBackground:(UIApplication *)application {
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}


- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}


- (void)applicationDidBecomeActive:(UIApplication *)application {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}


- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}


@end
